import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class AK47 here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class AK47 extends Arma
{
      private SimpleTimer timer=new SimpleTimer();
    private int reload;

    /**
     * Act - do whatever the AK47 wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    
    public AK47(int aDamage,int reload)
    {
        super(aDamage,reload);
      
    }
    
    public void fire()
    {
     /*   Fortaleza mundo=(Fortaleza)getWorld();
        Heroe heroe=mundo.getHeroe();
        
        if(timer.millisElapsed()>1000)
        {
           Bala bala= new Bala();
            getWorld().addObject(bala,heroe.getX(),heroe.getY());
            bala.setRotation(getRotation());
            bala.move(30);
            timer.mark();
        }*/
    }
    
    public void act() 
    {
        // Add your action code here.
    }   
    
    
}
